package aqs;

/**
 * Created by yu756 on 2020/1/3 22:45
 */
public class Main {

    public static int m = 0;

    public static void main(String[] args) throws Exception {
        Thread[] threads = new Thread[100];
        for (int i = 0; i < threads.length; i++) {
            threads[i] = new Thread(() -> {
                for (int j = 0; j < 100; j++) m++;
            });

        }

        for (Thread thread : threads) thread.start();
        for (Thread thread : threads) thread.join();

        System.out.println(m);
    }


}
